import request from '@/utils/request'


const api_name='/admin/vod/teacher'

export function pageList(current,limit,searchObj){
        return request({
        
            url: `${api_name}/findQueryPage/${current}/${limit}`,
            method: 'post',
            params: searchObj
          })
    }
export function removeTeacherId(id){

    return request({
        url: `${api_name}/remove/${id}`,
        method: 'delete',
      })
}

export function save(teacher) {
    return request({
      url: `${api_name}/saveTeacher`,
      method: `post`,
      data: teacher
    })
  }

  export function  getById(id) {
	return request({
		url: `${api_name}/get/${id}`,
		method: `get`
	})
}

export function updateById(teacher) {
    return request({
      url: `${api_name}/update`,
      method: `put`,
      data: teacher
    })
  }
export function  batchRemove(idList) {
    return request({
      url: `${api_name}/removeBatch`,
      method: `delete`,
      data: idList
    })
  }

export function  list() {
    return request({
      url: `${api_name}/findAll`,
      method: `get`
    })
}


